package com.ruoyi.users.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 metaverse_users
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
public class MetaverseUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id雪花算法生成 */
    private String id;

    /** 小程序中的唯一ID */
    @Excel(name = "小程序中的唯一ID")
    private String openId;

    /** 名称 */
    @Excel(name = "名称")
    private String nickName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 金币 */
    @Excel(name = "金币")
    private Long gold;

    /** 积分 */
    @Excel(name = "积分")
    private Long integral;

    /** 等级 */
    @Excel(name = "等级")
    private Long level;

    /** 经验 */
    @Excel(name = "经验")
    private Long exp;

    /** 水印id */
    @Excel(name = "水印id")
    private String wId;

    /** 注册ip */
    @Excel(name = "注册ip")
    private String registerIp;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 登录ip */
    @Excel(name = "登录ip")
    private String loginIp;

    /** 是否删除（0表示未删除，1表示已删除） */
    @Excel(name = "是否删除", readConverterExp = "0=表示未删除，1表示已删除")
    private String isDel;

    /** 状态（0表示正常，1表示禁用） */
    @Excel(name = "状态", readConverterExp = "0=表示正常，1表示禁用")
    private String status;


    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setGold(Long gold) 
    {
        this.gold = gold;
    }

    public Long getGold() 
    {
        return gold;
    }
    public void setIntegral(Long integral) 
    {
        this.integral = integral;
    }

    public Long getIntegral() 
    {
        return integral;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setExp(Long exp) 
    {
        this.exp = exp;
    }

    public Long getExp() 
    {
        return exp;
    }
    public void setwId(String wId) 
    {
        this.wId = wId;
    }

    public String getwId() 
    {
        return wId;
    }
    public void setRegisterIp(String registerIp) 
    {
        this.registerIp = registerIp;
    }

    public String getRegisterIp() 
    {
        return registerIp;
    }
    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("nickName", getNickName())
            .append("gender", getGender())
            .append("avatarUrl", getAvatarUrl())
            .append("city", getCity())
            .append("language", getLanguage())
            .append("province", getProvince())
            .append("country", getCountry())
            .append("gold", getGold())
            .append("integral", getIntegral())
            .append("level", getLevel())
            .append("exp", getExp())
            .append("wId", getwId())
            .append("registerIp", getRegisterIp())
            .append("registerTime", getRegisterTime())
            .append("loginTime", getLoginTime())
            .append("loginIp", getLoginIp())
            .append("isDel", getIsDel())
            .append("status", getStatus())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
